package testiranjeSoftvera.actions;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.KeyStroke;

import testiranjeSoftvera.actions.AbstractTestAction;
import testiranjeSoftvera.phage.PhageCore;

public class ExitPhageAction extends AbstractTestAction {

	private static final long serialVersionUID = -5093042474045478046L;

	
	public ExitPhageAction() {
		putValue(ACCELERATOR_KEY,
				KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK));
		putValue(javax.swing.Action.NAME, "Exit");
		putValue(SHORT_DESCRIPTION, "Exit");
		putValue(SMALL_ICON, loadIcon("images/filenew.png"));
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		PhageCore.getInstance().dispose();

	}

}
